package com.hzzc.core.model;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;

import java.io.Serializable;

@javax.persistence.Table(name = "sso_user_role")
@com.gitee.sunchenbin.mybatis.actable.annotation.Table(name = "sso_user_role")
public class SSOUserRole extends AutoIncrementEntity implements Serializable {

    @Column(name = "user_id", type = MySqlTypeConstant.BIGINT)
    private Long userId;

    @Column(name = "application_id", type = MySqlTypeConstant.BIGINT)
    private Long applicationId;

    @Column(name = "role_id", type = MySqlTypeConstant.BIGINT)
    private Long roleId;

    public Long getUserId() {
        return userId;
    }

    public SSOUserRole setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public Long getApplicationId() {
        return applicationId;
    }

    public SSOUserRole setApplicationId(Long applicationId) {
        this.applicationId = applicationId;
        return this;
    }

    public Long getRoleId() {
        return roleId;
    }

    public SSOUserRole setRoleId(Long roleId) {
        this.roleId = roleId;
        return this;
    }
}
